<?php

$config_base = array(

    'USER_AUTH_KEY'   => 'uid',			//用户认证识别号

    //加载自定义标签
    'TAGLIB_PRE_LOAD'=>'Common\\LibTag\\Yang,Common\\LibTag\\Other',//预加载的tag
    'TAGLIB_BUILD_IN' => 'cx', //内置标签

    //URL模式 ,0普通模式 ,1:PATHINFO模式（默认模式）,2:REWRITE模式,
    'URL_MODEL' => 2,//get_meta_value('HOME_URL_MODEL'),
    'URL_PATHINFO_DEPR' => get_meta_value('HOME_URL_PATHINFO_DEPR'),
    'short_open_tag'=>1, //检测php
    //路由
    'URL_ROUTER_ON' => 1,//get_meta_value('HOME_URL_ROUTER_ON'),
    'URL_ROUTE_RULES' => array(
        '/^catalog_(\d+)$/'=> 'XiHaTang/Post/index?catalogId=:1',
        '/^pn_(.*)$/'=> 'XiHaTang/Post/index?catalogName=:1',
        '/^news_(\d+)_(\d+)$/'=> 'Post/index?catalogId=:1&selectPage=:2',
        '/^article_(.*)$/'=> 'Article/index?postId=:1',
        'tgPage'=>'XiHaTang/Promotion/pc',
        'tgPhone'=>'XiHaTang/Promotion/phone',
    ),

    //开启静态缓存
    'HTML_CACHE_ON' => get_meta_value('HOME_HTML_CACHE_ON'),
    'HTML_CACHE_RULES' => get_meta_value('HTML_CACHE_RULES_COMMON'),


    //'VIEW_PATH'=>'./Public/'.MODULE_NAME .'/',
    'DEFAULT_THEME'  => get_cfg_value('CFG_THEMESTYLE'),//默认主题风格
    //'TMPL_DETECT_THEME' => false, // 自动侦测模板主题
    //'THEME_LIST'=>'default,blog',//支持的模板主题项
    //404页面绝对路径设置
    'errorPage' =>'.'.__ROOT__. ltrim(APP_PATH,'.'). MODULE_NAME . '/View/'.get_cfg_value('CFG_THEMESTYLE').'/404/404.html',
    'templateRount' => '.'.__ROOT__. ltrim(APP_PATH,'.'). MODULE_NAME . '/View/'.get_cfg_value('CFG_THEMESTYLE').'/template/',
    'TMPL_PARSE_STRING' => array(
        '__PUBLIC__' =>  __ROOT__. ltrim(APP_PATH,'.'). MODULE_NAME . '/View/'.get_cfg_value('CFG_THEMESTYLE'), //公共文件目录
        '__DATA__' => __ROOT__. '/Data', //编辑器等固定资源目录
        '__AVATAR__' => __ROOT__. '/avatar', //会员头像目录
    ),

);

return array_merge(get_cfg_value(),$config_base);


?>